home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9077 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: kikkin.zko.dec.com!carlson
  2. From: carlson@kikkin.zko.dec.com (Tom Carlson)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: templates on VAX/VMS
  5. Date: 28 Feb 1996 14:19:58 GMT
  6. Organization: Digital Equipment Corporation
  7. Distribution: world
  8. Message-ID: <4h1oae$t5c@zk2nws.zko.dec.com>
  9. References: <gastineau-2502961624010001@dialupline64.ghgcorp.com> <825496915.10116@vecnet.demon.co.uk>
  10. Reply-To: carlson@kikkin.zko.dec.com (Tom Carlson)
  11. NNTP-Posting-Host: kikkin.zko.dec.com
  12. X-Newsreader: mxrn 6.18-16
  13.  
  14.  
  15. In article <825496915.10116@vecnet.demon.co.uk>, gspencer@vecnet.demon.co.uk (Gary K. Spencer) writes:
  16.  
  17.  
  18. |>You need to use :-
  19. |>    #pragma define_template List<int>
  20. |>    #pragma define_template List<float>
  21. |>
  22. |>in one of your source modules to get the compiler to generate the code for the 
  23. |>template class. I think there is a command line switch that does the same 
  24. |>thing, but I use the above method.
  25.  
  26. The commandline switch is /template_define .
  27.  
  28. Tom
  29.  
  30. --
  31.  
  32. Thomas Carlson,   DEC C/ DEC C++     carlson@decc.enet.dec.com
  33. Digital Equipment Corporation,  ZK2-3/N30           
  34. 110 Spitbrook Rd,
  35. Nashua, NH  03062
  36.